package com.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.bean.WdPurpose;
import com.demo.bean.WdChangeType;
import com.demo.dao.WdPurposeMapper;
import com.demo.dao.WdChangeTypeMapper;
import com.demo.service.PurposeService;
import com.demo.service.PurposeService;

@Service
public class PurposeServiceImpl implements PurposeService {
	@Autowired
	private WdPurposeMapper dao;

	public List<WdPurpose> getList(WdPurpose bean) {
		return dao.getList(bean);
	}

	public int insertSelective(WdPurpose bean) {
		return dao.insertSelective(bean);
	}

	public int deleteSelective(String purposeId) {
		return dao.deleteByPrimaryKey(purposeId);
	}

	public WdPurpose getById(String purposeId) {
		return dao.selectByPrimaryKey(purposeId);
	}
	public int updatePurpose(WdPurpose bean) {
		
		return dao.updateByPrimaryKeySelective(bean);
	}	

}